home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / graphics / poly3d.zip / README < prev   
Text File  |  1989-06-04  |  6KB  |  108 lines

  1. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  2.  
  3.     A group of polygonal based, graphical programs where written and
  4. includes:
  5.  
  6. 1. DRAWFUNC - a program to display 2D functions of the form y = F(x) and/or
  7.    parametrics of the form x = F(t), y = F(t).
  8. 1. DRAWFN3D - a program to display 3D parametric surfaces of the form:
  9.    x = X(u,v), y = Y(u,v), z = Z(u,v) ( note the surface can easily be
  10.    explicit of the form Z = F(x, y) by x = u, y = v... ). A polygonal
  11.    approximation of these surface can be created to be used by IRIT or any
  12.    other polygon input based program.
  13. 2. IRIT - a polygonal CSG (Constructive Solid Geometry) solid modeler
  14.    was developed and support the primitives: box, generalized box, sphere,
  15.    cylinder, cone and torus in any orientation. Also accept free form surfaces
  16.    (open!) as created by DRAWFN3D program.
  17. 3. POLY3D - viewer for the polygonal data, the above programs can create.
  18. 4. POLY3D-H - hidden line removal for the polygonal data, the above programs
  19.    create.
  20.  
  21.   As the size of the programs is quite big, I am releasing (only executables
  22. this time) only POLY3D with some data files created by DRAWFN3D & IRIT. If the
  23. interest will be big enough I will release the executables of the other
  24. programs as well. Please send mail directly to me: gershon@cs.utah.edu
  25. (make subject 'IRIT and DRAWFN3D interest' please), If you have any
  26. remark/bug you thing might interest me, please send me mail to same address,
  27. subject 'IRIT and DRAWFN3D remark/bug'. Note the different subject, as if the
  28. number of interests will be too high, I would probably count them only. Lets
  29. limit the time you can express your interest to one month only, from the day
  30. it appears in CBIP.
  31.  
  32.   All the programs were written using Turbo C 2.0 by me, if this is of some
  33. important to anyone...
  34.  
  35.   The data files are divided into two archive files - one for DRAWFN3D 
  36. surfaces (called drawdemo.arc), and one for IRIT models (called iritdemo.arc).
  37. To see them all, unarchive everything and simply execute the batch files
  38. included (drawdemo.bat && iritdemo.bat). If you want to dive in,
  39. read the following paragraph, which gives some hints on POLY3D, otherwise
  40. you can skip till the usage section below, and enjoy the batch files.
  41.  
  42.   And yes, one more thing: if you have XT type machine without
  43. math-coprocessor, better look for another machine to run this demo on, unless
  44. you have nothing else to do, in the next hour.
  45.  
  46. **************************************************************************
  47.  
  48. Now some hints on using POLY3D:
  49.  
  50. command line options (type 'poly3d -z' for some info & help):
  51.  
  52. -m : More - give some more information on the data file(s) parsed.
  53. -i : Internal edges (created by IRIT) - default is not to display them, and
  54.      this option will force displaying them also.
  55. -e n : # Edges to use from each given polygon (default all). Very handy to do
  56.      '-e 2' on data created from DRAWFN3D.
  57. -o Object(s) : Objects to display (all by default). Object is the name as
  58.      appears after the OBJECT key word the data files
  59.      (do 'grep OBJECT datafile'...).
  60. -v ViewFile : View file - file of the view matrix transformation
  61. -z : Print version number and current defaults.
  62.  
  63.   Some other (more permanent) defaults can be set using the poly3d.cfg
  64. configuration file. This is a plain ascii file you can edit directly and
  65. set the parameters according to the comments there. Execute 'poly3d -z' to
  66. see the current configuration as read from the config. file. This file can be
  67. in any directory which is in your path - the same place as poly3d.exe is
  68. probably a good choice.
  69.   The program supports EGA/VGA, CGA & HERCULES graphics card, and uses the
  70. Turbo C autodetect feature. If this fails you can always coerce it to a
  71. specific card - see the poly3d.cfg file. For EGA/VGA users only: the program
  72. was tested for 10 minutes only on EGA 64k color machine, so dont blame me
  73. on the odd colors that where picked almost at random on my Hercules machine...
  74. also the VGA cards are actually coerced to work in EGA mode, so if the auto
  75. detect fails for you, try to coerce it manually to EGA in the '.cfg' file.
  76.   The program will use 80?87 if it detects one - again uses the Turbo C 80?87
  77. autodetect, or will run (much!) slower without it...
  78.   The program will use the mouse, if detected. If this detection fails you can
  79. coerce it (to TRUE - exists, or FALSE) in the poly3d.cfg configuration file.
  80.  
  81. Usage:
  82.  
  83.   The control of the program is performed by moving the graphical cursor along
  84. the menu and performing EXECUTE operation (see below). Moving the cursor can
  85. be made using the numerical keypad/arrows (shifted for faster movement) or
  86. if mouse is available, using the mouse. Two operation are defined and allowed:
  87.   EXECUTE - the <Return> key on the keyboard, or left  mouse button if exists.
  88.   ABORT   - the <Space>  key on the keyboard, or right mouse button if exists.
  89. The EXECUTE operation is used to request performing the selected menu item.
  90. The ABORT operation is used to request abortion of current operation (handy
  91. for big data files).
  92.   The EXECUTE operation performed on a menu item which has a vertical bar
  93. in its middle (such as the rotation, translation & scaling) has a quantity
  94. effect: selection performed on the vertical bar, has no effect at all while
  95. selecting the leftmost or rightmost menu item end has the maximal (but
  96. opposite!) one.
  97.   The menu items speak for themselves, and the only one that might need
  98. some explanation is the top one - Screen/Object coords: in Screen coords.
  99. X & Y are the screen coords. while Z goes into it. In Object coords., the
  100. object local system is used instead (used in all transformations).
  101.   ALT-Q can be used, at any time the cursor is displayed, for program abortion
  102. exactly as 'Quit' menu item.
  103.  
  104. Have Fun
  105.  
  106. Gershon Elber
  107. gershon@cs.utah.edu
  108.